using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class about : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        dst_pbTableAdapters.pb_postTableAdapter postAdapter =
            new dst_pbTableAdapters.pb_postTableAdapter();
        dst_pbTableAdapters.pb_commentTableAdapter commentAdapter = 
            new dst_pbTableAdapters.pb_commentTableAdapter();
        lblTotlePhotos.Text = postAdapter.GetTotlePostNumber().Value.ToString();
        lblTotleComments.Text = commentAdapter.GetTotalCommentsNumber().Value.ToString();

        dst_pbTableAdapters.pb_optionTableAdapter optionAdapter =
            new dst_pbTableAdapters.pb_optionTableAdapter();
        foreach (DataRow dr in optionAdapter.GetLinks().Rows)
        {
            lblLinks.Text += "<a href=\"" + dr["option_value"] + "\" target=\"_blank\">" + dr["option_name"] + "</a><br />";
        }
    }
}
